package com.time.admin.application.converter;

import com.time.admin.application.dto.CategoryDTO;
import com.time.admin.application.dto.PostCategoryDTO;
import com.time.admin.domain.entity.CategoryBO;
import com.time.admin.domain.entity.PostCategoryBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 文章分类关联DTO转换器
 *
 * @author: HuangQi
 * @date: Created in 11:40 2025/10/15
 * @description: 文章分类关联DTO转换类
 */
@Mapper
public interface PostCategoryDTOConverter {

    PostCategoryDTOConverter INSTANCE = Mappers.getMapper(PostCategoryDTOConverter.class);

    PostCategoryBO convertDTOToBO(PostCategoryDTO postCategoryDTO);

    CategoryDTO convertBOToCategoryDTO(CategoryBO categoryBO);
}
